package com.spudtech.tween
{
    
    import flash.display.*;
    
    
    public class SpudRotation extends SpudAngleTween
    {
        
        protected var _target : DisplayObject
        
        public function SpudRotation(init_target : DisplayObject,
                                     start_val : Number,
                                     end_val : Number,
                                     step_count : uint,
                                     play_mode : uint = PLAY_ONCE,
                                     init_easer : Function = null,
                                     init_callback : Function = null)
        {
            super(start_val, end_val, step_count, play_mode, init_easer, init_callback);
            
            _target = init_target
            
        }
        
        
        override public function update() : void
        {
            super.update();
            
            _target.rotation = currentVal;
            
        }
        
    }
    
}
